home *** CD-ROM | disk | FTP | other *** search
- #
- # (C) Tenable Network Security
- #
- #
- # The text of this plugin is (C) Red Hat Inc.
-
- if ( ! defined_func("bn_random") ) exit(0);
- if(description)
- {
- script_id(12424);
- script_version ("$Revision: 1.4 $");
- script_cve_id("CAN-2003-0690", "CAN-2003-0730");
-
- name["english"] = "RHSA-2003-289: XFree";
-
- script_name(english:name["english"]);
-
- desc["english"] = '
-
- Updated XFree86 packages provide security fixes to font libraries and XDM.
-
- XFree86 is an implementation of the X Window System providing the core
- graphical user interface and video drivers. XDM is the X display manager.
-
- Multiple integer overflows in the transfer and enumeration of font
- libraries in XFree86 allow local or remote attackers to cause a denial of
- service or execute arbitrary code via heap-based and stack-based buffer
- overflow attacks. The Common Vulnerabilities and Exposures project
- (cve.mitre.org) has assigned the name CAN-2003-0730 to this issue.
-
- The risk to users from this vulnerability is limited because only clients
- can be affected by these bugs, however in some (non-default)
- configurations, both xfs and the X Server can act as clients
- to remote font servers.
-
- XDM does not verify whether the pam_setcred function call succeeds, which
- may allow attackers to gain root privileges by triggering error conditions
- within PAM modules, as demonstrated in certain configurations of the
- pam_krb5 module. The Common Vulnerabilities and Exposures project
- (cve.mitre.org) has assigned the name CAN-2003-0690 to this issue.
-
- Users are advised to upgrade to these updated XFree86 4.1.0 packages, which
- contain backported security patches and are not vulnerable to these issues.
-
-
-
-
- Solution : http://rhn.redhat.com/errata/RHSA-2003-289.html
- Risk factor : High';
-
- script_description(english:desc["english"]);
-
- summary["english"] = "Check for the version of the XFree packages";
- script_summary(english:summary["english"]);
-
- script_category(ACT_GATHER_INFO);
-
- script_copyright(english:"This script is Copyright (C) 2004 Tenable Network Security");
- family["english"] = "Red Hat Local Security Checks";
- script_family(english:family["english"]);
-
- script_dependencies("ssh_get_info.nasl");
-
- script_require_keys("Host/RedHat/rpm-list");
- exit(0);
- }
-
- include("rpm.inc");
- if ( rpm_check( reference:"XFree86-100dpi-fonts-4.1.0-50.EL", release:"RHEL2.1") )
- {
- security_hole(0);
- exit(0);
- }
- if ( rpm_check( reference:"XFree86-4.1.0-50.EL", release:"RHEL2.1") )
- {
- security_hole(0);
- exit(0);
- }
- if ( rpm_check( reference:"XFree86-75dpi-fonts-4.1.0-50.EL", release:"RHEL2.1") )
- {
- security_hole(0);
- exit(0);
- }
- if ( rpm_check( reference:"XFree86-cyrillic-fonts-4.1.0-50.EL", release:"RHEL2.1") )
- {
- security_hole(0);
- exit(0);
- }
- if ( rpm_check( reference:"XFree86-devel-4.1.0-50.EL", release:"RHEL2.1") )
- {
- security_hole(0);
- exit(0);
- }
- if ( rpm_check( reference:"XFree86-doc-4.1.0-50.EL", release:"RHEL2.1") )
- {
- security_hole(0);
- exit(0);
- }
- if ( rpm_check( reference:"XFree86-ISO8859-15-100dpi-fonts-4.1.0-50.EL", release:"RHEL2.1") )
- {
- security_hole(0);
- exit(0);
- }
- if ( rpm_check( reference:"XFree86-ISO8859-15-75dpi-fonts-4.1.0-50.EL", release:"RHEL2.1") )
- {
- security_hole(0);
- exit(0);
- }
- if ( rpm_check( reference:"XFree86-ISO8859-2-100dpi-fonts-4.1.0-50.EL", release:"RHEL2.1") )
- {
- security_hole(0);
- exit(0);
- }
- if ( rpm_check( reference:"XFree86-ISO8859-2-75dpi-fonts-4.1.0-50.EL", release:"RHEL2.1") )
- {
- security_hole(0);
- exit(0);
- }
- if ( rpm_check( reference:"XFree86-ISO8859-9-100dpi-fonts-4.1.0-50.EL", release:"RHEL2.1") )
- {
- security_hole(0);
- exit(0);
- }
- if ( rpm_check( reference:"XFree86-ISO8859-9-75dpi-fonts-4.1.0-50.EL", release:"RHEL2.1") )
- {
- security_hole(0);
- exit(0);
- }
- if ( rpm_check( reference:"XFree86-libs-4.1.0-50.EL", release:"RHEL2.1") )
- {
- security_hole(0);
- exit(0);
- }
- if ( rpm_check( reference:"XFree86-tools-4.1.0-50.EL", release:"RHEL2.1") )
- {
- security_hole(0);
- exit(0);
- }
- if ( rpm_check( reference:"XFree86-twm-4.1.0-50.EL", release:"RHEL2.1") )
- {
- security_hole(0);
- exit(0);
- }
- if ( rpm_check( reference:"XFree86-xdm-4.1.0-50.EL", release:"RHEL2.1") )
- {
- security_hole(0);
- exit(0);
- }
- if ( rpm_check( reference:"XFree86-xf86cfg-4.1.0-50.EL", release:"RHEL2.1") )
- {
- security_hole(0);
- exit(0);
- }
- if ( rpm_check( reference:"XFree86-xfs-4.1.0-50.EL", release:"RHEL2.1") )
- {
- security_hole(0);
- exit(0);
- }
- if ( rpm_check( reference:"XFree86-Xnest-4.1.0-50.EL", release:"RHEL2.1") )
- {
- security_hole(0);
- exit(0);
- }
- if ( rpm_check( reference:"XFree86-Xvfb-4.1.0-50.EL", release:"RHEL2.1") )
- {
- security_hole(0);
- exit(0);
- }
-
- if ( rpm_exists(rpm:"XFree-", release:"RHEL2.1") )
- {
- set_kb_item(name:"CAN-2003-0690", value:TRUE);
- set_kb_item(name:"CAN-2003-0730", value:TRUE);
- }
-
- set_kb_item(name:"RHSA-2003-289", value:TRUE);
-